package factory;

import interfac.UserOperation;
import operation.AddUserOperation;
import operation.DeleteUserOperation;
import operation.ShowUserOperation;
import operation.UpdateUserOperation;

public class UserOperationFactory {
    public static UserOperation getOperation(int choice) {
        switch (choice) {
            case 1:
                return new ShowUserOperation();
            case 2:
                return new AddUserOperation();
            case 3:
                return new DeleteUserOperation();
            case 4:
                return new UpdateUserOperation();
            default:
                return null;
        }
    }
}